package com.pethospital.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("staff")
public class Staff implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String openid;
    private String name;
    private String avatar;
    private String phone;
    private Integer gender;
    private String title;
    private Long departmentId;
    private String introduction;
    private String password;
    private Integer role; // 角色：1-管理员，2-医生，3-护士
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer status;
} 